package com.ellricky.baselib.adapter.course

import android.os.Bundle
import androidx.fragment.app.Fragment
import com.andr.common.util.ResUtil
import com.ellricky.baselib.BaseConstant
import com.ellricky.baselib.R
import com.ellricky.baselib.ui.base.BaseTabVpFragment

class MakeUpCourseListMainFragment : BaseTabVpFragment() {

    companion object {
        fun newInstance(): MakeUpCourseListMainFragment {
            val fragment = MakeUpCourseListMainFragment()
            val bundle = Bundle()
            fragment.arguments = bundle
            return fragment
        }
    }

    override fun getFragmentList(): MutableList<Fragment> {
        return mutableListOf(
            MakeUpCourseFragment.newInstance(BaseConstant.OUT_TYPE_LEAVE),
            MakeUpCourseFragment.newInstance(BaseConstant.OUT_TYPE_ABSENT),
            MakeUpCourseFragment.newInstance(BaseConstant.STU_TYPE_MAKE_UP)
        )
    }

    override fun getTabTitleList(): MutableList<String> {
        return ResUtil.getStrArr(mContext, R.array.base_make_up_tip)
            .toMutableList()
    }

    override fun getTitleRes(): Int {
        return R.string.base_make_up_title
    }
}